{if $settings['is_view_dh']['value']}
<!--{template aljbd:index_header}-->
{else}
{template common/header_common}
{/if}
<script src="source/plugin/aljbd/js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
var jq=jQuery.noConflict();
</script>
<div id="ajaxwaitid"></div>
<link href="source/plugin/aljbd/css/style.css" rel="stylesheet">
<link href="source/plugin/aljbd/css/common_store.css" type="text/css" rel="stylesheet">

<script type="text/javascript">var cookiepre = 'VOz_', cookiedomain = '', cookiepath = '/';</script>

{if $bid}
{eval $sign=DB::result_first("select sign from ".DB::table('aljbd_attestation')." where sign=1 and bid=".$bid)}
{/if}
{if $settings['is_view_dh']['value']}
<style type="text/css">
	#main_menu{border-bottom: 1px solid #eee;}
	#main_menu li a{color:#444;}
</style>
<div class="wp">
<div class="bm cl" id="pt">
    <div class="z">
        <a title="{$_G['setting']['bbname']}" class="nvhm" href="./">{$_G['setting']['bbname']}</a><em>&rsaquo;</em><a href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}brand_index.html{else}plugin.php?id=aljbd{/if}">{lang aljbd:index_header_3}</a><em>&rsaquo;</em><a href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}brand.html{else}plugin.php?id=aljbd{/if}">{$bd['name']}</a><em>&rsaquo;</em>
		{if $_GET['act'] == 'view'}
			{lang aljbd:s124}
		{elseif $_GET['act'] == 'good'}
			{lang aljbd:s270}
		{elseif $_GET['act'] == 'goodview'}
			<a href="plugin.php?id=aljbd&act=good&bid=$bd['id']">{lang aljbd:s270}</a><em>&rsaquo;</em>{$g['name']}
		{elseif $_GET['act'] == 'notice'}
			{lang aljbd:notice_1}
		{elseif $_GET['act'] == 'noticeview'}
			<a href="plugin.php?id=aljbd&act=noticeview&bid=$bd['id']">{lang aljbd:notice_1}</a><em>&rsaquo;</em>{$n['subject']}
		{elseif $_GET['act'] == 'consume'}
			{lang aljbd:sj_list_17}&#21015;&#34920;
		{elseif $_GET['act'] == 'consumeview'}
			<a href="plugin.php?id=aljbd&act=consume&bid=$bd['id']">{lang aljbd:sj_list_17}&#21015;&#34920;</a><em>&rsaquo;</em>{$c['subject']}
		{elseif $_GET['act'] == 'album'}
			&#30456;&#20876;&#21015;&#34920;
		{elseif $_GET['act'] == 'albumview'}
			<a href="plugin.php?id=aljbd&act=albumview&bid=$bd['id']">&#30456;&#20876;&#21015;&#34920;</a><em>&rsaquo;</em>{$ab['albumname']}
		{elseif $_GET['act'] == 'map'}
			{lang aljbd:s65}
		{elseif $_GET['act'] == 'video'}
			&#35270;&#39057;&#21015;&#34920;
		{elseif $_GET['act'] == 'videoview'}
			<a href="plugin.php?id=aljbd&act=videoview&bid=$bd['id']">&#35270;&#39057;&#21015;&#34920;</a><em>&rsaquo;</em>{$c['subject']}
		{elseif $_GET['act'] == 'aljbd_appointment'}
			&#22312;&#32447;&#39044;&#32422;
		{/if}
		</div>
</div></div>
{else}
<style type="text/css">
	body {
		background: #FFF url("") repeat-x 0 0;
	}
	#main_menu{background:url(source/plugin/aljbd/images/menu_bg.jpg) repeat-x 0 0;}
</style>
<div class="topnav">
<div class="navbg" {if file_exists('source/plugin/aljbd/com/nav.php')}style="background: none repeat scroll 0 0 {$_G['cache']['plugin'][$pluginid]['nav_color']};"{/if}>
<div class="wp">
	<li class="navlogo" style="list-style:none;border-right: 0px;"><a href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}brand.html{else}plugin.php?id=aljbd{/if}">{$_G['cache']['plugin'][$pluginid]['aljbd_plugins']}</a></li>
<h1>
	<a style="margin-left:0px">&rsaquo;</a><a href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}brand_shop_{$bid}{else}plugin.php?id=aljbd&act=view&bid={$bid}{/if}">{$bd['name']}</a>
</h1>
<div class="nav_wrap">
<ul class="cl y" {if file_exists('source/plugin/aljbd/com/nav.php')}style="background: none repeat scroll 0 0 {$_G['cache']['plugin'][$pluginid]['nav_color']};border-left: 1px solid {$_G['cache']['plugin'][$pluginid]['nav_color']};border-right: 1px solid {$_G['cache']['plugin'][$pluginid]['nav_color']};"{/if}>

{if $_G['uid']==$bd['uid']}<li ><a target="_blank"  href="plugin.php?id=aljbd&act=member">{lang aljbd:s55}</a></li>{/if}
<style type="text/css">
	.topnav .navname,.topnav .navlogin{ border-right: 1px solid {$_G['cache']['plugin'][$pluginid]['nav_color']};}
</style>
{if $_G['uid']}
<li class="navname" >
<img width="20" height="20" src="{eval echo avatar($_G['uid'],'small',true)}" alt="avatar">
<span >{$_G['username']}</span><a  href="member.php?mod=logging&action=logout&formhash={FORMHASH}" rel="nofollow">[{lang aljbd:s116}]</a>
</li>
{else}
<li class="navlogin">
<a onclick="return showWindow('bdlogin', 'member.php?mod=logging&action=login&infloat=yes', 'get', 1);" href="javascript:;">{lang aljbd:s117}</a>
</li>
<li><a href="{$_G['cache']['plugin'][$pluginid]['register']}" target="_blank">{lang aljbd:s118}</a></li>
{/if}

</ul>
</div>
</div>
</div>
<div class="shadow"></div>
</div>
{/if}
<div class="wp" id="hdw">

<div id="slider_wrap">
<div class="slideblock">
<ul class="slideimg">
{if $adv}
{eval $i=0}
{loop $adv $k $a}
<li class="{if empty($i)}active{/if}">
{if $advurl[$k]}<a href="$advurl[$k]" target="_blank"><img {if $settings['templatepx']['value']}width="1200px"{else}width="960px"{/if} height="220" id="wimg_1" src="$a"></a>{else}<img {if $settings['templatepx']['value']}width="1200px"{else}width="960px"{/if} height="220" id="wimg_1" src="$a">{/if}
</li>
{eval $i++}
{/loop}
{else}
<li class="active">
<img {if $settings['templatepx']['value']}width="1200px"{else}width="960px"{/if} height="220" id="wimg_1" src="{$_G['cache']['plugin'][$pluginid]['adv1']}">
</li><li class="">
<img {if $settings['templatepx']['value']}width="1200px"{else}width="960px"{/if} height="220" id="wimg_2" src="{$_G['cache']['plugin'][$pluginid]['adv2']}">
</li>
{/if}
</ul>
<div class="slidenumwrap">
{if file_exists('source/plugin/aljbd/com/nav.php')}
<style type="text/css">

	
  {if $settings['is_view_dh']['value']}
  #main_menu li.mouseover a{
	color:{$_G['cache']['plugin'][$pluginid]['nav_color']};
	border-bottom: 2px solid {$_G['cache']['plugin'][$pluginid]['nav_color']};
	}
	#main_menu li a:hover{
	border-bottom: 2px solid {$_G['cache']['plugin'][$pluginid]['nav_color']};
	text-decoration:none;
	}
  {else}
	#main_menu li.mouseover {
		background: none repeat scroll 0 0 {$_G['cache']['plugin'][$pluginid]['nav_color']};
	}
  {/if}

</style>
{/if}
<ul class="slidenum">
{if count($adv)>1}
{eval $i=1}
{loop $adv $k $a}
<li class="{if $i==1}active{/if}">$i</li>
{eval $i++}
{/loop}
{elseif empty($adv)}
<li class="active">1</li>
<li class="">2</li>
{/if}
</ul>
</div>
</div>
</div>
<div class="cl" id="main_menu">
<ul>
<li {if $_GET['act']=='view'}class="mouseover"{/if}><a title="{lang aljbd:s124}" href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}brand_shop_{$bd['id']}.html{else}plugin.php?id=aljbd&act=view&bid={$bd['id']}{/if}"><span>{lang aljbd:s124}</span></a></li>
{if file_exists('source/plugin/aljbd/com/good.php') && !$settings['close_goods']['value']}
<li {if $_GET['act']=='good'||$_GET['act']=='goodview'}class="mouseover"{/if}><a title="{lang aljbd:admin_nav_2}" href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}brand_good_{$bd['id']}.html{else}plugin.php?id=aljbd&act=good&bid={$bd['id']}{/if}"><span>{lang aljbd:s257}</span></a></li>
{/if}
{if file_exists('source/plugin/aljbd/com/notice.php') && !$settings['close_notice']['value']}
<li {if $_GET['act']=='notice'||$_GET['act']=='noticeview'}class="mouseover"{/if}><a title="{lang aljbd:view_header_1}" href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}brand_notice_{$bd['id']}.html{else}plugin.php?id=aljbd&act=notice&bid={$bd['id']}{/if}"><span>{lang aljbd:view_header_1}</span></a></li>
{/if}
{if file_exists('source/plugin/aljbd/com/album.php') &&  !$settings['close_album']['value']}
<li {if $_GET['act']=='album'||$_GET['act']=='albumview'}class="mouseover"{/if}><a title="{lang aljbd:view_header_2}" href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}brand_album_{$bd['id']}.html{else}plugin.php?id=aljbd&act=album&bid={$bd['id']}{/if}"><span>{lang aljbd:view_header_2}</span></a></li>
{/if}
{if file_exists('source/plugin/aljbd/com/consume.php') && !$settings['close_consume']['value']}
<li {if $_GET['act']=='consume'||$_GET['act']=='consumeview'}class="mouseover"{/if}><a title="{lang aljbd:view_header_3}" href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}brand_consume_{$bd['id']}.html{else}plugin.php?id=aljbd&act=consume&bid={$bd['id']}{/if}"><span>{lang aljbd:view_header_3}</span></a></li>
{/if}
{if $_G['cache']['plugin']['aljsp'] ['is_sp']}
<li {if $_GET['act']=='video' || $_GET['act'] == 'videoview'}class="mouseover"{/if}><a title="&#35270;&#39057;" href="plugin.php?id=aljsp&act=video&bid=$bd['id']"><span>&#35270;&#39057;</span></a></li>
{/if}
{if $_G['cache']['plugin']['aljsyy'] ['is_yy']}
<li {if $_GET['act']=='aljbd_appointment'}class="mouseover"{/if}><a title="&#22312;&#32447;&#39044;&#32422;" href="plugin.php?id=aljsyy&act=aljbd_appointment&bid=$bd['id']&formhash={FORMHASH}"><span>&#22312;&#32447;&#39044;&#32422;</span></a></li>
{/if}
{loop $pagelist $menu}
<li {if $_GET['act']=='viewpage' && $_GET['nid'] == $menu['id']}class="mouseover"{/if}><a title="{$menu['subject']}" href="plugin.php?id=aljbd&act=viewpage&bid={$bd['id']}&nid={$menu['id']}"><span>{$menu['subject']}</span></a></li>
{/loop}
{if $settings['openviewindex']['value']}
<li ><a title="{lang aljbd:go_back}{$_G['cache']['plugin'][$pluginid]['aljbd_plugins']}" href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}brand_index.html{else}plugin.php?id=aljbd{/if}"><span>{lang aljbd:s57}</span></a></li>
{/if}
</ul>
</div>
</div>
<div id="append_parent"></div>
<script type="text/javascript">
jq(function() {
jq('#for_mod_sshop').click(function(){
jq('#mod_sshop').attr("checked","checked");
jq('#mod_sgood').removeAttr("checked");
jq('#form_search').submit();
});
jq('#for_mod_sgood').click(function(){
jq('#mod_sgood').attr("checked","checked");
jq('#mod_sshop').removeAttr("checked");
jq('#form_search').submit();
});
jq('#myshopmenu,#navmsg').parent().hover(function(){
jq(this).addClass('h');
jq(this).find('ul').show();
},function(){
jq(this).removeClass('h');
jq(this).find('ul').hide();
});
jq('#shop_info .siteurl').hover(function(){
jq(this).addClass('h');
},function(){
jq(this).removeClass('h');
});
jq('#slider_wrap .slidenum li').mouseover(function(){
if(!jq(this).hasClass('active')){
jq(this).addClass('active').siblings().removeClass('active');
var i=jq(this).index();
jq('#slider_wrap .slideimg li:eq('+i+')').addClass('active').siblings().removeClass('active');
}
clearInterval(slideloop);
}).mouseout(function(){
autoactive();
});
var slideloop;
function autoactive(){
slideloop = setInterval(function(){
var index = jq('#slider_wrap .slidenum li.active').index();
index = index<(jq('#slider_wrap .slidenum li').length-1)?(index+1):0;
jq('#slider_wrap .slidenum li:eq('+index+')').trigger('mouseover').trigger('mouseout');
},3000);
}
autoactive();
jq('#messages .message_tab h3').click(function(){
jq(this).addClass('c').siblings().removeClass('c');
var i = jq(this).index();
jq('#messages>div:not(.message_tab)').removeClass('c').eq(i).addClass('c');
});
jq('#messages .replylink').click(function(){
jq(this).closest('.commentli').find('.replies_wp').toggle().end().find('#commentmessage_r').focus();
})
jq('#messages .replylink_u').click(function(){
jq(this).closest('.replyli').find('.replies_wp_u').toggle().end().find('#commentmessage_u').focus();
})
});
</script>